package zzcltw.com.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {
	
   // private static Logger logger = LoggerFactory.getLogger(IndexController.class);
   
	@RequestMapping("/home")
	public ModelAndView index(Map<String, Object> model) {
		Map<String,String> map = new HashMap<String,String>();
		//List<Resource> resList = resourceMapper.findResources(map);
		Map<String,Object> rsMap = new HashMap<String,Object>();
		//System.out.println("总长度："+resList.size());
		rsMap.put("resList", 13);		
		return new ModelAndView("home",rsMap);
	}	
	@RequestMapping("/403")
	public String unauthorizedRole(){
		//logger.info("------没有权限-------");
		return "403";
	}
}
